package com.zhiliao.state.demo4;

public class DispatchOrderState extends OrderState{
    public DispatchOrderState(int state) {
        super(state);
    }

    @Override
    public boolean checkState() {
        context.setOrderState(new BookedOrderState(500));
        return context.getOrderState().getState()==500;
    }
}
